package com.dnjn.happiness.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDate;

/**
 * 历史沟通记录对象 biz_history_interview
 * 
 * @author happiness
 * @date 2023-11-20
 */
@Schema(name = "HistoryInterview", description = "历史沟通记录")
@Accessors(chain = true)
@Getter
@Setter
@TableName("biz_history_interview")
public class HistoryInterview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    
    


    private LocalDate currDate;

    private Long userId;

    @TableField(exist = false)
    private String nickName;

    private String deleted;

    @TableField(exist = false)
    private Integer count;

    @TableField(exist = false)
    private Integer happinessScore;

    @TableField(exist = false)
    private String leaderName;

    @TableField(exist = false)
    private Communicate communicate;

    @TableField(exist = false)
    private Long deptId;

    @TableField(exist = false)
    private Integer hlbean;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private String sex;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("currDate", getCurrDate())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("version", getVersion())
            .toString();
    }
}
